<%@ include file="base.jsp" %>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles"%>
<%@ page import="net.amsoft.iservice.ilink.hibernate.IBroker" %>
<%@ page import="net.amsoft.iservice.ilink.service.ILinkService" %>
<%
	// Service URLs
	String issoURL = "#";
	String contactURL = "#";
	
	// Get IBroker Data
	IBroker oIBroker = ILinkService.getIBroker(request.getServerName());		
	if (oIBroker!=null)
	{
		String url = oIBroker.getIssoURL();
		issoURL = url.substring(0, url.lastIndexOf('/')+1);
		url = oIBroker.getContactURL();
		contactURL = url.substring(0, url.lastIndexOf('/'));
	}

%>

<html>
<head>
<script src="javascripts/help.js"></script>

<meta content="text/html; charset=UTF-8" http-equiv="content-type">
<title><bean:message key="title.login" /></title>
<link rel="stylesheet" type="text/css" href="styleSheets/iservices.css" />
</head>

<body onload="document.LoginForm.synonym.focus();document.LoginForm.synonym.value='=';">
<center>
<table cellspacing=25 border=0 cellpadding=0>
		<%@ include file="leftMenu.jsp" %>
		<td width=605 valign=top>
		<form name="LoginForm" action="/ilink/Login" method="POST">
		<table border=0 cellspacing=0 cellpadding=0 width=100%>
<tr><td align="left" colspan="2" height="23px" valign="bottom"><a href="<%=issoURL%>"><img src="<%=imagePath%>/tab-noclick-isso.jpg" border="0" onmouseover="this.src='<%=imagePath%>/tab-rollover-isso.jpg'" onmouseout="this.src='<%=imagePath%>/tab-noclick-isso.jpg'" /></a><a href="<%=contactURL%>"><img src="<%=imagePath%>/tab-noclick-contact.jpg" border="0" onmouseover="this.src='<%=imagePath%>/tab-rollover-contact.jpg'" onmouseout="this.src='<%=imagePath%>/tab-noclick-contact.jpg'" /></a><img src="<%=imagePath%>/tab-click-forwarding.jpg" border="0" onmouseover="this.src='<%=imagePath%>/tab-rollover-forwarding.jpg'" onmouseout="this.src='<%=imagePath%>/tab-click-forwarding.jpg'" /></td></tr>
			<tr>
				<td valign="top">
				<table border="0" cellpadding="0" cellspacing="0" width="270px">
					<tr height="45">
						<td width="10" bgcolor="#999999"><img src="<%=imagePath%>/grey-square.gif"></td>
						<td width="270" bgcolor="#999999"><img src="<%=imagePath%>/title_forwarding_login.gif" /></td>
						<td width="10" bgcolor="#999999"><img src="<%=imagePath%>/grey-square.gif"></td>
					</tr>						
					<tr>
						<td width="10" bgcolor="#999999"><img src="<%=imagePath%>/grey-square.gif"></td>
						<td width="270" >
						<table width="270" border="0" bgcolor="#CCCCCC">
							<tr>
								<td width="10px"></td>
								<td class="blue-smalltext"><b><html:errors /></b></td>
							</tr>
							<tr>
								<td width="5px"></td>
								<td class="blue-smalltext"><bean:message key="label.login" /></td>
							</tr>
							<tr>
								<td width="10px"></td>
								<td height="15px" class="black-smalltext"></td>
							</tr>
							<tr>
								<td height="8px" colspan="2" valign="bottom"><img height="2px"
									src="<%=imagePath%>/dotted-line.gif" /></td>
							</tr>
							<tr>
								<td width="10px"></td>
								<td height="8px"></td>
							</tr>
							<tr>
								<td width="10px"></td>
								<td height="32px" class="black-smalltext"><bean:message
									key="label.useriname" /> <input type="text" name="synonym" size="22" value="="
									maxlength="255" class="textbox">&nbsp; <input type="image"
									src="<%=imagePath%>/button-submit.jpg" name="submit_btn"
									onclick="LoginForm.submit();" align="middle"></td>
							</tr>
							<tr>
								<td width="10px"></td>
								<td height="32px" class="blue-xsmalltext">
									<font class="blue-smalltext"><bean:message key="label.multiple.inames" /> </font>
									<a class="link-nounderline" href='#' onmouseover="showHelp('<bean:message key='label.help.multipleinametitle'/>', '<bean:message key='label.help.multipleinamemsg' />');">
									<img border="0" src="<%=imagePath%>/help-bullet.jpg"/>	</a>
								</td>
							</tr>
							<tr>
								<td width="10px"></td>
								<td height="98px" class="black-smalltext"></td>
							</tr>
						</table>
						</td>
						<td width="10" bgcolor="#999999"><img src="<%=imagePath%>/grey-square.gif"></td>
					</tr>
					<tr height="10">
						<td width="10" bgcolor="#999999"><img src="<%=imagePath%>/grey-square.gif"></td>
						<td width="270" bgcolor="#999999"></td>
						<td width="10" bgcolor="#999999"><img src="<%=imagePath%>/grey-square.gif"></td>
					</tr>						
				</table>
				</td>
				<td width=25><img src="<%=imagePath%>/white-square.gif" /></td>
				<td width=270 height="300" valign=top><img
					src="<%=imagePath%>/related-news.gif?<%=dt.getTime()%>" width="270" height="300" /><br>
				</td>
			</tr>
		</table>
		</form>
		<form name="helpForm">
			<input name='imagePath' type='hidden' value='<%=imagePath%>' />
			<DIV id="help" class="helpbox"></DIV>
		</form>
		</td>
	</tr>
	<tr>
		<td>&nbsp;</td>
		<td colspan=2></td>
	</tr>
</table>
</center>
</body>
</html>
